package cn.bdqn.pojo;

import java.util.ArrayList;
import java.util.List;

/**
 * @author Wind
 * 2020/6/25 14:18
 */
public class PageInfo {
    private Integer pageNum;
    private Integer pages;
    private Integer total;
    private Integer pageSize;
    private List<Grade> emps = new ArrayList<Grade>();
    private List<Order> order = new ArrayList<Order>();
    private List<Integral> integral=new ArrayList<Integral>();
    public PageInfo(Integer pageNum) {
        this.pageNum = pageNum;
        this.pageSize = 3;
    }
    public Integer getPageNum() {
        return pageNum;
    }

    public void setPageNum(Integer pageNum) {
        this.pageNum = pageNum;
    }

    public Integer getPages() {
        this.pages = total % pageSize == 0 ? total / pageSize : (total / pageSize)+1;
        return pages;
    }

    public void setPages(Integer pages) {
        this.pages = pages;
    }

    public Integer getTotal() {
        return total;
    }

    public void setTotal(Integer total) {
        this.total = total;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }

    public List<Grade> getEmps() {
        return emps;
    }

    public void setEmps(List<Grade> emps) {
        this.emps = emps;
    }

    public List<Order> getOrder() {
        return order;
    }

    public void setOrder(List<Order> order) {
        this.order = order;
    }


    public List<Integral> getIntegral() {
        return integral;
    }

    public void setIntegral(List<Integral> integral) {
        this.integral = integral;
    }
}
